package com.app.ui.activity;

import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.widget.TextView;

import com.app.ui.activity.base.BaseActivity;
import com.app.utiles.other.ActivityUtile;
import com.app.utiles.other.FileUtile;


public class StartActivity extends BaseActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(new TextView(this));
        StartHandler startHandler = new StartHandler();

        FileUtile.deleteFile();
        startHandler.sendEmptyMessageDelayed(1, 1 * 1000);
        //

    }

    class StartHandler extends Handler {
        @Override
        public void handleMessage(Message msg) {
            super.handleMessage(msg);
            ActivityUtile.startActivityCommon(MainActivity1.class);
            finish();
        }
    }
}
